package com.recharge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.recharge.common.result.ResultDO;
import com.recharge.core.entity.WithdrawEntity;
import com.recharge.domain.query.WithdrawQueryDO;
import com.recharge.domain.vo.WithdrawDO;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
public interface WithdrawService extends IService<WithdrawEntity> {

    /**
     * 添加提现记录
     *
     * @param domain
     * @return
     */
    ResultDO add(WithdrawDO domain);

    /**
     * 修改提现记录
     *
     * @param domain
     * @return
     */
    ResultDO edit(WithdrawDO domain);

    /**
     * 根据主键ID获取提现记录
     *
     * @param id
     * @return
     */
    ResultDO get(String id);

    /**
     * 根据主键ID 删除提现记录
     *
     * @param id
     * @return
     */
    ResultDO remove(String id);

    /**
     * 查询提现记录
     *
     * @param domain
     * @return
     */
    ResultDO find(WithdrawQueryDO domain);

    /**
     * 申请提现
     *
     * @param domain
     * @return
     */
    ResultDO applyWithdraw(WithdrawDO domain, String username);

    /**
     * 审核提现
     *
     * @param domain
     * @return
     */
    ResultDO verifyWithdraw(WithdrawDO domain, String username);

}
